package cn.xshi.iot.live.service;

import cn.xshi.common.base.BaseResult;
import cn.xshi.iot.live.model.CameraEntity;
/**
 * @Desc 视频流接口
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
public interface PlayService {
    /**
     * 视频流包含直播，回放等
     * @param cameraEntity
     * @return
     */
    BaseResult<String> play(CameraEntity cameraEntity);

    /**
     * 关闭实时预览视频
     * @param cameraEntity
     * @return
     */
    BaseResult<String> stop(CameraEntity cameraEntity);

    /**
     * 开始录制视频
     * @param cameraEntity
     * @return
     */
    BaseResult<String> transcribe(CameraEntity cameraEntity);

    /**
     * 停止录制
     * @param cameraEntity
     * @return
     */
    BaseResult<String> stopTranscribe(CameraEntity cameraEntity);

    /**
     * 截图
     * @param cameraEntity
     * @return
     */
    BaseResult<String> screenShot(CameraEntity cameraEntity);

}
